<?php
/*
 *	首页模块
 */
namespace app\api\controller;

use think\captcha\facade\Captcha;
use think\facade\View;
use think\facade\Db;

class Index extends Base{

    public function index(){
    	return 'The interface has expired！';
    }
	
	//验证码方法
	public function verify(){
		return Captcha::create();
	}
	
	//错误提示
	public function myerror(){
		$T=$this->tipsTpl('error');
		return View::fetch($T['path'],$T['data']);
	}
	
	//成功跳转
	public function mysuccess(){
		$T=$this->tipsTpl('success');
		return View::fetch($T['path'],$T['data']);
	}
}
